package com.dx.cms.controller;

import com.dx.core.servlet.BaseServlet;
import jakarta.servlet.annotation.WebServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.log4j.Log4j2;

/**
 * 測試
 */
@WebServlet(name="userServlet",value = "/user/*")
@Log4j2
public class UserServlet extends BaseServlet {

    /**
     * 登錄
     * @param request
     * @param response
     */
    public void login(HttpServletRequest request, HttpServletResponse response){
        log.info("测试日志");
    }

    /**
     * 測試方法
     * @param request
     * @param response
     */
    public void test(HttpServletRequest request,HttpServletResponse response){
        System.out.println("測試方法");

    }

    public void add(HttpServletRequest request,HttpServletResponse response){
        log.info("添加用户");
    }
}
